<?php

/**
 * Subclass for performing query and update operations on the 'container' table.
 *
 * 
 *
 * @package lib.model
 */ 
class ContainerPeer extends BaseContainerPeer
{
	
	static public function getByOpenSocialName($str){
		$c = new Criteria();
		$c->add(ContainerPeer::OPENSOCIAL_NAME,$str);
		$os_container = ContainerPeer::doSelectOne($c);
		if(!$os_container) throw new sfException("OS Container niet gevonden: ".$str);
		return $os_container;
	}
	
}
